package com.jyxd.web.data.basic;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 生命体征表和出入量2合一
 */
@Entity
@Table(name = "table_vital_sign_merge")
@Data
public class VitalSignMerge implements Serializable,Cloneable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 住院号
     */
    @Column(name = "visit_id")
    private String visitId;

    /**
     * 本次住院号
     */
    @Column(name = "visit_code")
    private String visitCode;

    /**
     * 病人主键id
     */
    @Column(name = "patient_id")
    private String patientId;

    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "data_time")
    private Date dataTime;


    private  String date;
    private  String time;
    /**
     * 体温
     */
    @Column(name = "template")
    private String template;

    /**
     * 心率
     */
    @Column(name = "hr")
    private String hr;
    /**
     * 脉搏
     */
    @Column(name = "pulse")
    private String pulse;
    /**
     * 呼吸
     */
    @Column(name = "br")
    private String br;
    /**
     * 无创
     */
    @Column(name = "nbp")
    private String nbp;
    /**
     * 有创
     */
    @Column(name = "abp")
    private String abp;
    /**
     * 意识
     */
    @Column(name = "consciousness")
    private String consciousness;

    /**
     * 是否使用药物
     */
    @Column(name = "drag_flag")
    private String dragFlag;
    /**
     * 瞳孔大小左
     */
    @Column(name = "pupil_size_left")
    private String pupilSizeLeft;
    /**
     * 瞳孔大小右
     */
    @Column(name = "pupil_size_right")
    private String pupilSizeRight;
    /**
     * 瞳孔反应左
     */
    @Column(name = "pupil_response_left")
    private String pupilResponseLeft;
    /**
     * 瞳孔反应右
     */
    @Column(name = "pupil_response_right")
    private String pupilResponseRight;
    /**
     * 心律
     */
    @Column(name = "heart_rhythm")
    private String heartRhythm;
    /**
     * saO2
     */
    @Column(name = "saO2")
    private String saO2;
    /**
     * SPO2
     */
    @Column(name = "spO2")
    private String spO2;
    /**
     * CVP
     */
    @Column(name = "cvp")
    private String cvp;
    /**
     * MODE
     */
    @Column(name = "mode")
    private String mode;
    /**
     * fio2
     */
    @Column(name = "fio2")
    private String fio2;
    /**
     * vt
     */
    @Column(name = "vt")
    private String vt;
    /**
     * ps
     */
    @Column(name = "ps")
    private String ps;

    /**
     * ps
     */
    @Column(name = "peep")
    private String peep;
    /**
     * ipap
     */
    @Column(name = "ipap")
    private String ipap;
    /**
     * 危急值
     */
    @Column(name = "critical")
    private String critical;

    /**
     * 药物名称
     */
    @Column(name = "drug_name")
    private String drugName;
    /**
     * 备用量
     */
    @Column(name = "reserve_amount")
    private String reserveAmount;
    /**
     * 实用量
     */
    @Column(name = "practical_amount")
    private String practicalAmount;
    /**
     * 入量每时
     */
    @Column(name = "input_amount_hour")
    private String inputAmountHour;
    /**
     * 入量总量
     */
    @Column(name = "input_amount")
    private String inputAmount;
    /**
     * 出量每时
     */
    @Column(name = "output_amount_hour")
    private String outputAmountHour;
    /**
     * 出量总量
     */
    @Column(name = "output_amount")
    private String outputAmount;
    /**
     * 尿量
     */
    @Column(name = "urine")
    private String urine;
    /**
     * bak1
     */
    @Column(name = "bak1")
    private String bak1;
    /**
     * bak2
     */
    @Column(name = "bak2")
    private String bak2;
    /**
     * bak3
     */
    @Column(name = "bak3")
    private String bak3;
    /**
     * 护理措施
     */
    @Column(name = "nursing_assessment",length = 2048)
    private String nursingAssessment;
    /**
     * 签名
     */
    @Column(name = "sign")
    private String sign;

    /**
     * 签名
     */
    @Column(name = "sign_img")
    private String signImg;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 操作人code
     */
    @Column(name = "operator_code")
    private String operatorCode;
    /**
     * 操作人
     */
    @Column(name = "operator_name")
    private String operatorName;
    /**
     * 状态（0：禁用 1：正常 -1：删除）
     */
    @Column(name = "status")
    private int status;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 更新人code
     */
    @Column(name = "operator_code_update")
    private String operatorCodeUpdate;
    /**
     * 更新人
     */
    @Column(name = "operator_code_update_name")
    private String operatorCodeUpdateName;
    /**
     * PI
     */
    @Column(name = "bak4")
    private  String  bak4;
    /**
     * 吸氧方式
     */
    @Column(name = "bak5")
    private  String  bak5;
    /**
     * 血糖
     */
    @Column(name = "bak6")
    private  String  bak6;
    /**
     * 开始时间
     */
    @Column(name = "bak7")
    private  String  bak7;
    /**
     * 结束时间
     */
    @Column(name = "bak8")
    private  String  bak8;
    /**
     * 速率
     */
    @Column(name = "bak9")
    private  String  bak9;
    private Integer start;

    private Integer totalCount;

    /**
     * 交班签名
     */
    @Column(name = "checksign")
    private String checksign;

    @Override
    public Object clone() throws CloneNotSupportedException  {
        VitalSignMerge p=null;
        try{
         p=(VitalSignMerge) super.clone();
        }catch (CloneNotSupportedException e) {
        }
     return super.clone();
    }
}
